package com.wx.mapper;

import com.wx.entity.WechatUserAddress;
import java.util.List;

public interface WechatUserAddressMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WechatUserAddress record);

    WechatUserAddress selectByPrimaryKey(Integer id);

    List<WechatUserAddress> selectAll();
    
    List<WechatUserAddress> selectAllByUid(Integer uid);

    int updateByPrimaryKey(WechatUserAddress record);
    
    WechatUserAddress selectAddressByUidAndId(Integer id, Integer uid);
    
    void updateIsDefault(Integer id, boolean isDefault, Integer uid);
    
    WechatUserAddress selectDefaultAddressByUid(Integer uid);
}